<template>
  <div class="recommends" >
    <div v-for="item in recommends" class="recommends-item">
      <a :href="item.link" >
        <img :src="item.image">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
    export default {
        name: "RecommendView",
        props:{
          recommends: {
            type:Array,
            default() {
              return [];
            }
          }

        }
    }
</script>

<style scoped>
  .recommends {
    display: flex;
    text-align: center;
    padding: 10px 0 20px 0;
    font-size: 12px;
    border-bottom: 8px solid #eeeeee;
  }
  .recommends-item {
    flex: 1;
  }
  .recommends-item a img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
</style>
